const state = {
    userInfo: new Object(),
    system: new String(),
}
const mutations = {
    SET_USER_INFO: (state, value) => {
        state.userInfo = value;
    },
    SET_SYSTEM: (state, value) => {
        state.system = value;
    },
}

const actions = {
    // 添加UserInfo
    setUserInfo({commit}, data) {
        commit('SET_USER_INFO', data)
    },
    // 添加System
    setSystem({commit}, data) {
        commit('SET_SYSTEM', data)
    },
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}

